Skip to content

refactor(pedm): modify serve arguments#1301

Merged
Benoît Cortier (CBenoit) merged 3 commits intomasterfrom
pedm-sql-init
Apr 9, 2025
Merged

refactor(pedm): modify serve arguments#1301
Benoît Cortier (CBenoit) merged 3 commits intomasterfrom
pedm-sql-init

Conversation

@allan2
Copy link
Copy Markdown
Contributor

  • serve now takes a Config struct rather than a path
    • pipe name is now part of Config rather than a direct argument
  • Config struct is now exported as devolutions_pedm::Config
  • serve is now exported as devolutions_pedm::serve

- `serve` arguments are changed
  - it now takes the `Config` struct instead of a path
  - pipe name is now part of `Config` rather than a direct argument
- `Config` struct is now exported as `devolutions_pedm::Config`
  - it can be used by server implementations directly
- `serve` is now exported as `devolutions_pedm::serve`
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2025

Let maintainers know that an action is required on their side

  • Add the label release-required Please cut a new release (Devolutions Gateway, Devolutions Agent, Jetsocat, PowerShell module) when you request a maintainer to cut a new release (Devolutions Gateway, Devolutions Agent, Jetsocat, PowerShell module)

  • Add the label release-blocker Follow-up is required before cutting a new release if a follow-up is required before cutting a new release

  • Add the label publish-required Please publish libraries (`Devolutions.Gateway.Utils`, OpenAPI clients, etc) when you request a maintainer to publish libraries (Devolutions.Gateway.Utils, OpenAPI clients, etc.)

  • Add the label publish-blocker Follow-up is required before publishing libraries if a follow-up is required before publishing libraries

This commit makes it public again. It is used by the generate-openapi
tool in the `devolutions_pedm::api::openapi` call.
Allan Zhang (allan2) added a commit that referenced this pull request Apr 8, 2025
impl Config {
/// Creates a new config with the default values for a new setup.
fn standard() -> Self {
pub fn standard() -> Self {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: Sounds like it should be Default::default()

Copy link
Copy Markdown
Member

@CBenoit Benoît Cortier (CBenoit) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! It’s better that way. Thank you!

@CBenoit Benoît Cortier (CBenoit) merged commit 46435e5 into master Apr 9, 2025
39 checks passed
@CBenoit Benoît Cortier (CBenoit) deleted the pedm-sql-init branch April 9, 2025 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants